﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="OMenuEdit.aspx.cs" Inherits="IHISCETeim.Web.MachineSys.SysBasic.OMenuEdit" %>
<h2 class="contentTitle">修改页面菜单信息</h2>
<div class="pageContent">
	<form id="Form1"   action="sysbasic/OMenuEdit.aspx?ajaxmethod=editmenu&menuid=<%=MenuId %>" class="pageForm required-validate" onsubmit="return validateCallback(this,navTabAjaxDone);">
    <div class="pageFormContent" layoutH="100"> 
                   
			<p>
				<label>菜单名称：</label>
                <input type="text" name="MenuName" class="required" alt="请输入菜单名称" size="30" value="<%=objMenu.MenuName %>" />
			</p>
            <p>
				<label>上级菜单：</label>
                 <select name="ParMenuId" class=""> 
                    <%=GetParMenuId()%>
                   </select>
			</p>
            <div class="divider"></div>
          
            <p>
				<label>页面路径：</label>
                <input type="text" name="DWZHref" class="required" alt="请输入页面路径"  size="30" value="<%=objMenu.DWZHref %>" />
			</p> 
            <p>
				<label>是否启用：</label>
                <input type="checkbox" name="IsUsed"  value="true"  <%=objMenu.IsUsed?"checked":"" %>/>
			</p>
              <div class="divider"></div>
            <p>
				<label>页面ID：</label>
                <input type="text" name="DWZRel" class="required" alt="请输入页面ID" value="<%=objMenu.DWZRel %>" />
			</p>
            <p>
				<label>是否刷新：</label>
                <input type="checkbox" name="DWZFlesh" value="true" <%=objMenu.DWZFlesh?"checked":"" %>/>
			</p>
             <div class="divider"></div>
            <p>
				<label>打开目标：</label>                  
                   <select name="DWZTarget" class="combox">
                    <option value="navTab" <%=objMenu.DWZTarget=="navTab"?"selected":"" %>>navTab</option>
                    <option value="dialog" <%=objMenu.DWZTarget=="dialog"?"selected":"" %>>dialog</option>
                    <option value="external" <%=objMenu.DWZTarget=="external"?"selected":"" %>>iframe navTab页面</option>
                   </select>
                (一般为navTab.也可为dialog)
			</p>
             <p>
				<label>排序值：</label>
                <input type="text" name="DispayIndex"  class="digits" alt="请输入数字" value="<%=objMenu.DispayIndex %>" />              
			</p>
              
            <div class="divider"></div>
            
            <dl class="nowrap">
				<dt>页面功能权限信息：</dt>
				<dd>
                    
                    <table cellpadding="0" cellspacing="0" border="0" style="width:100%; line-height:25px; height:25px;">
                        <tr>
                            <td>
                                增加权限标记：
                            </td>
                            <td>                               
                                <input type="text" id="OMenuEdit_PermissionTag" />&nbsp;
                            </td>
                            <td>
                                <input type="button" id="OMenuEdit_BtnAddTag" value="添加" />
                               
                            </td>
                        </tr>
                        <tr>
                            <td colspan="3">
                                 (如果原添加的标记有错，则修改时不用选中，系统会自动添加，你只需重新输入一个正确的值)
                            </td>
                        </tr>
                        <tr>
                            <td colspan="3" id="OMenuEdit_TagContent">
                                <%=GetPermission2()%>
                            </td>
                        </tr>
                    </table>
                </dd>
			</dl>
    </div>
    <div class="formBar">
   
			<ul>
				<li><div class="buttonActive"><div class="buttonContent">                 
                    <button type="submit">保存</button></div></div></li>
				<li><div class="button"><div class="buttonContent"><button type="button" class="close">取消</button></div></div></li>
			</ul>
		</div>
       
	</form>
    </div>

    <script type="text/javascript">
        $(document).ready(function () {
            $("#OMenuEdit_BtnAddTag").click(function () {
                var $OMenuAdd_PermissionTag = $("#OMenuEdit_PermissionTag").val();
                var $OMenuAdd_TagContent = $("#OMenuEdit_TagContent");
                var peritemtemp = "<label><input type=\"checkbox\" name=\"PermissionTag\"  value=\"" + $OMenuAdd_PermissionTag + "\" checked />" + $OMenuAdd_PermissionTag + "</label>";
                $OMenuAdd_TagContent.append(peritemtemp);
            })
        })
</script>